#ifndef PROFILE_H
#define PROFILE_H

#include <QWidget>
#include "../../route/responsestruct.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Profile; }
QT_END_NAMESPACE

class Profile : public QWidget
{
    Q_OBJECT
public:
    Profile(QWidget *parent = nullptr);
    void setUserProfile(responseUserInfo userInfo);

private slots:
    void on_closeButton_clicked();

private:
    void styleSelf();


private:
    const QString LEFT_CLOSE_BUTTON_STYLE = "QPushButton{background:transparent;border-image:url(:/icon/source/main/left-close-down.png)}"
                                            "QPushButton:hover{background:transparent;border-image:url(:/icon/source/main/left-close.png)}"
                                            "QPushButton:pressed{background:transparent;border-image:url(:/icon/source/main/left-close.png)}";
private:
    Ui::Profile *ui;

};

#endif // PROFILE_H
